Skip to content

Add option to set HA as launcher #5348

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 26, 2025

Conversation

fpetrovski
Copy link
Contributor

Summary

This PR is related to #5023 where it was discussed to allow HA Companion app to become a launcher.
A new option was added to the preference settings, under "Other Settings" Preference Category.

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

Screenshots

Any other notes

@dshokouhi dshokouhi linked an issue May 22, 2025 that may be closed by this pull request
Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm personally still not convinced this feature needs to be added to the companion app.

@fpetrovski fpetrovski force-pushed the feature/launcher branch 2 times, most recently from e5411e8 to eed5c27 Compare June 12, 2025 15:00
@fpetrovski
Copy link
Contributor Author

Here's an updated video of the feature:
https://github.com/user-attachments/assets/47e36894-3b5c-45f0-8d8c-a53f37721c23

I'm not too confident about the icons and I'm open to suggestions :)

@fpetrovski fpetrovski requested a review from dshokouhi June 14, 2025 13:23
@fpetrovski fpetrovski force-pushed the feature/launcher branch 2 times, most recently from 59b0721 to 8c153fc Compare June 19, 2025 10:03
Copy link
Collaborator

@TimoPtr TimoPtr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good I've played with it a bit. The only thing that is a bit weird is that when your back stack is empty when you press back it reloads the app. We could capture this in the WebViewActivity, but at the same time it's kinda nice when we are in launcher mode to be able to refresh the app.

I'll let @jpelgrom the final word on the PR 👍🏻

Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Launcher" is obvious to me as someone who has used Android for a long time, but maybe not for everyone. The system settings app now seem to call it "home app", should that be mentioned somewhere or used ("launcher/home app" in the description)?

Note there is a merge conflict.

I'll let @jpelgrom the final word on the PR 👍🏻

No change in my thoughts for whether or not it fits (I think for the x% that may want behavior like this, 90% are served by app pinning). However, it now has enough safeguards that it shouldn't cause major issues, and I won't block it.

Copy link
Member

@jpelgrom jpelgrom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strings look good to me now, we can always tweak later based on feedback.

@fpetrovski fpetrovski requested review from TimoPtr and jpelgrom June 25, 2025 09:33
@TimoPtr TimoPtr merged commit c989c91 into home-assistant:main Jun 26, 2025
32 of 33 checks passed
@TimoPtr
Copy link
Collaborator

TimoPtr commented Jun 26, 2025

Thanks @fpetrovski for your contribution 💪🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow the app to be the launcher
4 participants